import React from 'react';
import ReactDOM from 'react-dom';

import { BrowserRouter as Router, Route } from 'react-router-dom';

import Index from './pages/Index';
import Zhongjiang from './pages/Zhongjiang';

// import registerServiceWorker from './registerServiceWorker';

class BaseRouter extends React.Component{
    render () {
        return (
            <Router>
                <div>
                    <Route path="/index" component={Index} />
                    <Route path="/zhongjiang/:pro_id" component={Zhongjiang} />
                </div>
            </Router>
        );
    }
}

ReactDOM.render(<BaseRouter />, document.getElementById('root'));
// registerServiceWorker();
